#include "PrecompiledHeader.h"
#include "AberrationPPFX.h"

/*--------------------------------------------------------------------------*/

AberrationPPFX::AberrationPPFX() :
	IPostprocess(g_Material->GetMaterial("mat_aberration_ppfx"))
{

	this->m_abbX = glm::vec4(0.001f, -0.002f, 0.0f, 0.0f);
	this->m_abbY = glm::vec4(0.002f, 0.002f, 0.0f, 0.0f);
	this->m_abbZ = glm::vec4(-0.002f, -0.001f, 0.0f, 0.0f);
}

/*--------------------------------------------------------------------------*/

AberrationPPFX::~AberrationPPFX()
{

}

/*--------------------------------------------------------------------------*/

void AberrationPPFX::UploadParameters()
{
	ROpenGL::SetUniformBufferValue(g_Renderer->GetUniformBuffer(EUbo::Postprocess), EUboPostprocess::Var_0, &this->m_abbX);
	ROpenGL::SetUniformBufferValue(g_Renderer->GetUniformBuffer(EUbo::Postprocess), EUboPostprocess::Var_1, &this->m_abbY);
	ROpenGL::SetUniformBufferValue(g_Renderer->GetUniformBuffer(EUbo::Postprocess), EUboPostprocess::Var_2, &this->m_abbZ);
}

/*--------------------------------------------------------------------------*/
